<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="36-05-手写Promise-then方法的返回值是promise对象.js"></script>
</head>

<body>
    <script>
        let p = new Promise((resolve,reject)=>{
            resolve('success');        
        });

        // console.log(p);

        // then的返回值绝对是promise对象
        let p2 =  p.then(val=>{
            // console.log(val);
            return 'lalala';
        },rea=>{
            console.log(rea);
        });

        console.log(p2);

     


       

    </script>
</body>

</html>